package com.quanyue.music.user.type;

import com.quanyue.music.domain.entity.User;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Table
public class UserDetail extends User {
    @Transient
    private Boolean isVip;
    @ApiModelProperty(name = "频道1收听时长")
    @Transient
    private Long howLongOne;
    @ApiModelProperty(name = "频道2收听时长")
    @Transient
    private Long howLongTwo;
    @Column(name = "valid_count")
    @ApiModelProperty(name = "推荐人数")
    private Integer validCount;
    @Column(name = "end_time")
    private LocalDateTime endTime;
    @Column(name = "recharge_count")
    private Integer rechargeCount;
    @Column(name = "total_price")
    private BigDecimal totalPrice;

    public Long getHowLongOne() {
        return howLongOne;
    }

    public void setHowLongOne(Long howLongOne) {
        this.howLongOne = howLongOne;
    }

    public Long getHowLongTwo() {
        return howLongTwo;
    }

    public void setHowLongTwo(Long howLongTwo) {
        this.howLongTwo = howLongTwo;
    }

    public Integer getValidCount() {
        return validCount;
    }

    public void setValidCount(Integer validCount) {
        this.validCount = validCount;
    }

    public Boolean getVip() {
        return isVip;
    }

    public void setVip(Boolean vip) {
        isVip = vip;
    }

    public LocalDateTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }

    public Integer getRechargeCount() {
        return rechargeCount;
    }

    public void setRechargeCount(Integer rechargeCount) {
        this.rechargeCount = rechargeCount;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }
}
